var contextPath =
  window.location.origin + "/" + window.location.pathname.split("/")[1] + "/";
var serverPath = "http://test.basegps.com:8088/zt-bi/server/"; //test
// var serverPath = 'http://bitest/server/';//local
var indexPath = serverPath + "index.php?event=";
export default {
  contextPath,
  staticPath: contextPath + "bi/static/",
  mapPath: contextPath + "bi/static/map/",
  themePath: contextPath + "bi/static/theme/",
  //数据源操作
  getDataSourceList: indexPath + "getDataSourceList",
  searchDataSource: indexPath + "searchDataSource",
  getDataSource: indexPath + "getDataSource",
  updateDataSource: indexPath + "updateDataSource",
  saveDataSource: indexPath + "saveDataSource",
  deleteDataSource: indexPath + "deleteDataSource",
  //图表模板
  getTemplateList: indexPath + "getTemplateList",
  getTemplate: indexPath + "getTemplate",
  saveTemplate: indexPath + "saveTemplate",
  updateTemplate: indexPath + "updateTemplate",
  deleteTemplate: indexPath + "deleteTemplate",
  searchTemplate: indexPath + "searchTemplate",
  //图表信息
  getChartList: indexPath + "getChartList",
  getChart: indexPath + "getChart",
  saveChart: indexPath + "saveChart",
  updateChart: indexPath + "updateChart",
  deleteChart: indexPath + "deleteChart",
  searchChart: indexPath + "searchChart",
  //获取数据库数据
  connectMySql: serverPath + "connectmysql.php"
};
